import request from '@/utils/request'

export function listWithTree(data) {
  return request({
    url: '/api/system/menus/listWithTree',
    method: 'post',
    data
  })
}
export function addMenusListWithTree(data) {
  return request({
    url: '/api/system/menus/listWithTree',
    method: 'post',
    data
  })
}


export function delRequest(id) {
  return request({
    url: '/api/system/menus/delete/'+id,
    method: 'get',
  })
}


export function addRequest(data) {
  return request({
    url: '/api/system/menus/add',
    method: 'post',
    data
  })
}
